package com.qishen.operation.controller;


import com.qishen.operation.service.LoginService;
import com.san.model.operation.dtos.LoginDto;
import com.san.model.operation.vo.LoginVo;
import operation.Login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class LoginController implements Login {
    @Autowired
    private LoginService loginService;
    @PostMapping("login")
    @Override
    public LoginVo login(@RequestBody LoginDto dto) {
        return loginService.login(dto);
    }
    // POST http://localhost:8081/api/user/login



}
